package com.chinairi.mall.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chinairi.mall.controller.viewobject.AllProjectInfoOfCompany;
import com.chinairi.mall.controller.viewobject.OrderCollectionVO;
import com.chinairi.mall.model.OrderServiceSettle;
import com.chinairi.mall.service.modelobject.OrderServiceSettleMO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gsl
 * @since 2020-10-20
 */
public interface OrderServiceSettleMapper extends BaseMapper<OrderServiceSettle> {
    /**
     * 根据店铺id获取服务订单
     * @param orderCollectionMO
     * @param t1
     * @param t2
     * @return
     */
    List<OrderServiceSettleMO> searchShopOrderSettleCollection(@Param("orderCollectionMO") OrderCollectionVO orderCollectionMO, @Param("t1") String t1, @Param("t2")String t2);

    /**
     * 根据订单id查询店铺id
     * @param orderId 订单id
     * @return 店铺id
     */
    List<OrderServiceSettle> getOsseShopIdByOrderId(@Param("orderId")String orderId);


    AllProjectInfoOfCompany getServiceNumAndMoneyByUciDbId(String uciDbId);

    int getServiceNumByPid(String pid);
}
